//对话记录模型
export class DialogModel {
  // 对话ID
  id: string;
  // 用户ID
  userId: string;
  // 问题
  question: string;
  // 回答
  answer: string;
  // 创建时间
  createAt: string;
  //模型
  modelUsed:string
  // 构造方法
  constructor(id?: string,
              userId?: string,
              question?: string,
              answer?: string,
              createAt?: string,
              modelUsed?:string) {
    this.id = id;
    this.userId = userId;
    this.question = question;
    this.answer = answer;
    this.createAt = createAt;
    this.modelUsed = modelUsed;
  }
}

export class Message {
  role: string
  content: string

  constructor(role?: string, content?: string) {
    this.role = role
    this.content = content
  }
}